//存放用户页面的所有接口

import  request  from "../utlis/request.js"
//登录页面
export const api_login= (url,data)=> request.post(url,data);
//添加
export const api_save= (data)=> request.post("/users/add",data);
//列表渲染
export const api_query=(data)=>request.get("/users/list",data)
//删除
export const api_del=(data)=>request.get("/users/del",data)
//检查旧密码是否正确
export const api_old=(data)=>request.get("/users/checkoldpwd",data)

//修改密码
export const api_newPwd=(data)=>request.post("/users/editpwd",data)
//批量删除
export const api_delAll=data=>request.get("/users/batchdel",data)
//添加商品
export const api_add=(data)=>request.post("/goods/add",data)
//获取商品列表
export const api_querly=(data)=>request.get("/goods/list",data)

//获取个人中心
export const api_findOne=(data)=>request.get("/users/info",data)
//修改用户头像
export const api_upimg=(data)=>request.get("/users/avataredit",data)
//上传用户头像
